package com.project.biz;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project.entity.CmsOperationLog;
import com.project.pojo.dto.OperationLogDTO;
import com.project.pojo.model.OperationLogModel;

/**
 * @Description: 系统操作日志业务层接口类
 * @Author: zhuchi
 * @CreateDate: 2020/6/30 20:43
 * @Version: 1.0
 */
public interface CmsOperationLogBiz extends IService<CmsOperationLog> {

    /**
     * 分页查询系统操作日志
     * @param operationLogModel
     * @return
     */
    IPage<OperationLogDTO> getOperationLog(OperationLogModel operationLogModel);

    /**
     * 添加系统日志
     * @param userId
     * @param content
     * @return
     */
    int addOperationLog(Long userId, String content);

}
